import axios from 'axios';

// ebay范本数据接口
export const Git = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/Get',data)
            .then((response) => response.data)
}
// 同步标题接口
export const SynchronousTitle = (data) => {
    return axios.get('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/SynchronousTitle?id=' + data)
            .then((response) => response.data)
}
// 翻译接口
export const TanslateTitle = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/translate', data)
            .then(response => response.data)
}
// 分类数据接口
export const getClassData = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/getClassData', data)
            .then((response) => response.data)
}

// ID分类接口
export const getClassID = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/getClassID', data)
            .then((response) => response.data)
}
// 历史记录
export const getHistory = () => {
    return axios.get('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/getHistory')
            .then(response => response.data)
}

// 搜索关键字接口
export const getKeyworld = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/keyworldClass', data)
            .then((response) => response.data)
}
// 获取产品属性
export const getAttributeData = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/getAttributeData', data)
            .then((response) => response.data)
}
// 获取图片数据
export const getPictureData = (data) => {
    return axios.post('https://easy-mock.com/mock/5ad712f7cd7dc31346a88eb3/ebay/getPictureData', data)
            .then((response) => response.data)
}

